/*
 * UpdateTestApp.java
 */

package updater;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 * The main class of the application.
 */
public class UpdateTestApp extends SingleFrameApplication {

    private static String arguments[] = null;
    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
        try {
            show(new UpdateTestView(this));
        } catch (FileNotFoundException ex) {
            Logger.getLogger(UpdateTestApp.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(UpdateTestApp.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of UpdateTestApp
     */
    public static UpdateTestApp getApplication() {
        return Application.getInstance(UpdateTestApp.class);
    }

    public static String[] getArgs()
    {
        return arguments;
    }

    /**
     * Main method launching the application.
     */
    public static void main(String[] args) {
        arguments = args;
        launch(UpdateTestApp.class, args);
    }
}
